﻿<Core:DXWindow x:Class="QuanLyKho.frmNhapKhoTimKiemThuoc" 
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
               xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
               xmlns:Core="http://schemas.devexpress.com/winfx/2008/xaml/core" 
               Height="300" Width="600" Title="Danh sách biệt dược" ResizeMode="NoResize">
    <Grid>
        <dxg:GridControl Name="gridDmThuoc" PreviewKeyDown="gridDmThuoc_PreviewKeyDown">
            <dxg:GridControl.Columns>
                <!--<dxg:GridColumn Header="" Width="40" ReadOnly="True">
                    <dxg:GridColumn.DisplayTemplate>
                        <ControlTemplate>
                            <dxe:TextEdit Text="{Binding Path=Data.RowHandle.Value, Converter={common:RowHandleToStringConverter}, Mode=OneWay}" HorizontalAlignment="Center" EditMode="InplaceInactive" />
                        </ControlTemplate>
                    </dxg:GridColumn.DisplayTemplate>
                </dxg:GridColumn>-->
                <dxg:GridColumn FieldName="MaThuoc" Header="Mã thuốc" ReadOnly="True" Width="100" />
                <dxg:GridColumn FieldName="TenThuocHamLuong" Header="Tên thuốc" ReadOnly="True" Width="180" />
                <dxg:GridColumn FieldName="Dm_DonViTinh.TenDonViTinh" Header="ĐVT" ReadOnly="True" Width="70" />
                <dxg:GridColumn FieldName="GiaNhap" Header="Giá nhập" ReadOnly="True" Width="80">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings Mask="c0" MaskType="Numeric" MaskCulture="Vietnamese (Vietnam)" MaskUseAsDisplayFormat="True" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="GiaXuat" Header="Giá bán" ReadOnly="True" Width="80">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings Mask="c0" MaskType="Numeric" MaskCulture="Vietnamese (Vietnam)" MaskUseAsDisplayFormat="True" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="Dm_QuyCach.TenQuyCach" Header="Quy cách" ReadOnly="True" Width="180" />
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tbvThuoc" ShowGroupPanel="False" NavigationStyle="Row" ShowAutoFilterRow="True" AllowEditing="False" AutoWidth="True" MouseDoubleClick="TableView_MouseDoubleClick" MultiSelectMode="None" PreviewKeyDown="TableView_PreviewKeyDown" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Core:DXWindow>